<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./style1.css">
</head>
<body>
  <div class="range">
    <div class="sliderValue">
      <span>100</span>
    </div>
    <div class="field">
      <div class="value left">0</div>
      <input type="range" min="10" max="200" value="100" steps="1">
      <div class="value right">200</div>
    </div>
  </div>
  <script>
    const slideValue=document.querySelector('span')
    const inputSlider=document.querySelector('input')
    inputSlider.oninput=()=>{
      let value =inputSlider.value
      slideValue.textContent=value
      slideValue.style.left=value / 2 +'%'
      slideValue.classList.add('show')
    }
    inputSlider.onblur=()=>{
      slideValue.classList.remove('show')
    }
  </script>
</body>
</html>